public class Course {
    // 课程的编号
    int id;
    // 课程的名称
    String name;
    // 上课地点
    String location;
    // 上课时间
    String time;
    // 授课教师
    Teacher teacher;

    // 构造方法，用来创建课程对象
    public Course(int id, String name, String location, String time) {
        this.id = id;
        this.name = name;
        this.location = location;
        this.time = time;
    }
}